<?php
class Item2Model extends Model {
    // 定义自动验证
    protected $_validate    =   array(
		array('subitem','require','请输入子项名称'),
		array('fs','require','请输入分数'),
		array('fs','/^-?\d+$/','分数必须为罗马数字',0,'regex'),
        );
}